home *** CD-ROM | disk | FTP | other *** search
/ Workbench Add-On / Workbench Add-On - Volume 1.iso / BBS-Archive / Comm / AmiTCP30b2.lha / src / appl / napsaterm / tel_iacout.h < prev    next >
C/C++ Source or Header  |  1994-05-14  |  861b  |  38 lines

  1. /*
  2.  * $Id: tel_iacout.h,v 3.1 1994/05/14 14:17:07 ppessi Exp $
  3.  *
  4.  * Author: Tomi Ollila <too@cs.hut.fi>
  5.  *
  6.  * Copyright © 1993, 1994   AmiTCP/IP Group, <amitcp-group@hut.fi>
  7.  *                Helsinki University of Technology, Finland.
  8.  *                All rights reserved.
  9.  *
  10.  * Created: Thu Apr  7 18:29:16 1994 too
  11.  * Last modified: Fri May 13 02:46:42 1994 ppessi
  12.  */
  13.  
  14. #ifndef TEL_IACOUT_H
  15. #define TEL_IACOUT_H
  16.  
  17. extern u_char telnet_iacbuf[36]; /* buffer for negotiation replies */
  18. extern short  telnet_iaclen;    /* bytes in  buffer above  */
  19.  
  20. static INLINE void doIacflush(void)
  21. {
  22.   send(rsock, telnet_iacbuf, telnet_iaclen, 0);
  23.   telnet_iaclen = 0;
  24. }  
  25.  
  26. static INLINE void iacflush(void)
  27. {
  28.   if (telnet_iaclen)
  29.     doIacflush();
  30. }
  31.  
  32. void putiac2(u_char wwdd, u_char c);
  33. void putiac1(u_char c);
  34. void putiacstring(u_char wwdd, const u_char * str);
  35.  
  36. #endif /* TEL_IACOUT_H */
  37.  
  38.